package com.sz.common.base.dto;

import com.sz.common.base.dao.Pagination;

/**
 * Function: QResultDto <br>
 * Author: Charles <br>
 * Date: 2016-12-20 10:10:00
 */
public class QResultDto extends ResultDto {

    private Pagination pagination;

    public Pagination getPagination() {
        return pagination;
    }

    public void setPagination(Pagination pagination) {
        this.pagination = pagination;
    }

    /**
     * 创建新的结果对象
     */
    public QResultDto() {

    }

    /**
     * 创建新的结果对象
     *
     * @param data       result data
     * @param pagination pagination
     */
    public QResultDto(Object data, Pagination pagination) {
        this.setData(data);
        this.setPagination(pagination);
    }

    /**
     * 创建新的结果对象
     *
     * @param errorCode error code
     * @param message   message
     */
    public QResultDto(int errorCode, String message) {
        super(errorCode, message);
    }
}
